/*
 * This is the class used to represent one row of the parademo_user_votes table.
 */

package org.parademo.equations.base;

import java.util.Date;

/**
 *
 * @author Ajit Skanda Kumaraswamy.
 */
public class Vote {

    /**
     * The proposal ID of the proposal in question.
     */
    private long contentId;

    /**
     * The user ID of the voter.
     */
    private long userId;
    
    /**
     * The weight contributed by this vote.
     */
    private double weight;

    /**
     * The number of tokens in this vote.
     */
    private int vote;

    /**
     * The absolute timestamp at which the user has placed this vote.
     */
    private Date timestamp;

    /**
     * @return the contentId
     */
    public long getContentId() {
        return contentId;
    }

    /**
     * @param contentId the contentId to set
     */
    public void setContentId(long contentId) {
        this.contentId = contentId;
    }

    /**
     * @return the userId
     */
    public long getUserId() {
        return userId;
    }

    /**
     * @param userId the userId to set
     */
    public void setUserId(long userId) {
        this.userId = userId;
    }

    /**
     * @return the aggregatedWeights
     */
    public double getWeight() {
        return weight;
    }

    /**
     * @param weight the aggregatedWeights to set
     */
    public void setWeight(double weight) {
        this.weight = weight;
    }

    /**
     * @return the votes
     */
    public int getVote() {
        return vote;
    }

    /**
     * @param vote the votes to set
     */
    public void setVote(int vote) {
        this.vote = vote;
    }

    /**
     * @return the timestamps
     */
    public Date getTimestamp() {
        return timestamp;
    }

    /**
     * @param timestamp the timestamps to set
     */
    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }

}
